package 集合泛型;

import java.util.LinkedHashMap;
import java.util.LinkedList;

public class Linkmap1 {
    public static void main(String[] args) {
        //当数字特别多，适合用这种方法
        LinkedList<String> list=new LinkedList<>();
        list.add("java");
        list.add(0,"javascirpt");
        list.add(0,"php");
        list.add(0,"html");
        list.add(0,"css");
        list.add(0,"jquery");
        list.addFirst("python");
        list.addLast("c");
        System.out.println(list);
    }
}
